package com.anzhen.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TodoRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TodoRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTdIdIsNull() {
            addCriterion("td_id is null");
            return (Criteria) this;
        }

        public Criteria andTdIdIsNotNull() {
            addCriterion("td_id is not null");
            return (Criteria) this;
        }

        public Criteria andTdIdEqualTo(Integer value) {
            addCriterion("td_id =", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdNotEqualTo(Integer value) {
            addCriterion("td_id <>", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdGreaterThan(Integer value) {
            addCriterion("td_id >", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("td_id >=", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdLessThan(Integer value) {
            addCriterion("td_id <", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdLessThanOrEqualTo(Integer value) {
            addCriterion("td_id <=", value, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdIn(List<Integer> values) {
            addCriterion("td_id in", values, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdNotIn(List<Integer> values) {
            addCriterion("td_id not in", values, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdBetween(Integer value1, Integer value2) {
            addCriterion("td_id between", value1, value2, "tdId");
            return (Criteria) this;
        }

        public Criteria andTdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("td_id not between", value1, value2, "tdId");
            return (Criteria) this;
        }

        public Criteria andUIdIsNull() {
            addCriterion("u_id is null");
            return (Criteria) this;
        }

        public Criteria andUIdIsNotNull() {
            addCriterion("u_id is not null");
            return (Criteria) this;
        }

        public Criteria andUIdEqualTo(Integer value) {
            addCriterion("u_id =", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotEqualTo(Integer value) {
            addCriterion("u_id <>", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThan(Integer value) {
            addCriterion("u_id >", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("u_id >=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThan(Integer value) {
            addCriterion("u_id <", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThanOrEqualTo(Integer value) {
            addCriterion("u_id <=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdIn(List<Integer> values) {
            addCriterion("u_id in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotIn(List<Integer> values) {
            addCriterion("u_id not in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdBetween(Integer value1, Integer value2) {
            addCriterion("u_id between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotBetween(Integer value1, Integer value2) {
            addCriterion("u_id not between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andTdContentIsNull() {
            addCriterion("td_content is null");
            return (Criteria) this;
        }

        public Criteria andTdContentIsNotNull() {
            addCriterion("td_content is not null");
            return (Criteria) this;
        }

        public Criteria andTdContentEqualTo(String value) {
            addCriterion("td_content =", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentNotEqualTo(String value) {
            addCriterion("td_content <>", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentGreaterThan(String value) {
            addCriterion("td_content >", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentGreaterThanOrEqualTo(String value) {
            addCriterion("td_content >=", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentLessThan(String value) {
            addCriterion("td_content <", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentLessThanOrEqualTo(String value) {
            addCriterion("td_content <=", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentLike(String value) {
            addCriterion("td_content like", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentNotLike(String value) {
            addCriterion("td_content not like", value, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentIn(List<String> values) {
            addCriterion("td_content in", values, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentNotIn(List<String> values) {
            addCriterion("td_content not in", values, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentBetween(String value1, String value2) {
            addCriterion("td_content between", value1, value2, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdContentNotBetween(String value1, String value2) {
            addCriterion("td_content not between", value1, value2, "tdContent");
            return (Criteria) this;
        }

        public Criteria andTdStatusIsNull() {
            addCriterion("td_status is null");
            return (Criteria) this;
        }

        public Criteria andTdStatusIsNotNull() {
            addCriterion("td_status is not null");
            return (Criteria) this;
        }

        public Criteria andTdStatusEqualTo(String value) {
            addCriterion("td_status =", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusNotEqualTo(String value) {
            addCriterion("td_status <>", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusGreaterThan(String value) {
            addCriterion("td_status >", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusGreaterThanOrEqualTo(String value) {
            addCriterion("td_status >=", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusLessThan(String value) {
            addCriterion("td_status <", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusLessThanOrEqualTo(String value) {
            addCriterion("td_status <=", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusLike(String value) {
            addCriterion("td_status like", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusNotLike(String value) {
            addCriterion("td_status not like", value, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusIn(List<String> values) {
            addCriterion("td_status in", values, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusNotIn(List<String> values) {
            addCriterion("td_status not in", values, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusBetween(String value1, String value2) {
            addCriterion("td_status between", value1, value2, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdStatusNotBetween(String value1, String value2) {
            addCriterion("td_status not between", value1, value2, "tdStatus");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeIsNull() {
            addCriterion("td_create_time is null");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeIsNotNull() {
            addCriterion("td_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeEqualTo(Date value) {
            addCriterion("td_create_time =", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeNotEqualTo(Date value) {
            addCriterion("td_create_time <>", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeGreaterThan(Date value) {
            addCriterion("td_create_time >", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("td_create_time >=", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeLessThan(Date value) {
            addCriterion("td_create_time <", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("td_create_time <=", value, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeIn(List<Date> values) {
            addCriterion("td_create_time in", values, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeNotIn(List<Date> values) {
            addCriterion("td_create_time not in", values, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeBetween(Date value1, Date value2) {
            addCriterion("td_create_time between", value1, value2, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("td_create_time not between", value1, value2, "tdCreateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeIsNull() {
            addCriterion("td_complate_time is null");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeIsNotNull() {
            addCriterion("td_complate_time is not null");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeEqualTo(Date value) {
            addCriterion("td_complate_time =", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeNotEqualTo(Date value) {
            addCriterion("td_complate_time <>", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeGreaterThan(Date value) {
            addCriterion("td_complate_time >", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("td_complate_time >=", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeLessThan(Date value) {
            addCriterion("td_complate_time <", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeLessThanOrEqualTo(Date value) {
            addCriterion("td_complate_time <=", value, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeIn(List<Date> values) {
            addCriterion("td_complate_time in", values, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeNotIn(List<Date> values) {
            addCriterion("td_complate_time not in", values, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeBetween(Date value1, Date value2) {
            addCriterion("td_complate_time between", value1, value2, "tdComplateTime");
            return (Criteria) this;
        }

        public Criteria andTdComplateTimeNotBetween(Date value1, Date value2) {
            addCriterion("td_complate_time not between", value1, value2, "tdComplateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}